package zhang.com.ssm.service.impl;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import zhang.com.ssm.po.AuthorPo;
import zhang.com.ssm.po.FilePo;
import zhang.com.ssm.po.FundPo;
import zhang.com.ssm.po.KeyPo;
import zhang.com.ssm.po.PublishPo;
import zhang.com.ssm.po.SummaryPo;
import zhang.com.ssm.service.xmlPoService;
@Transactional
@Service
public class xmlPoServiceImpl implements xmlPoService {

	@Autowired
	public AuthorServiceImpl authorService;
	@Autowired
	public FileServiceImpl fileService;
	@Autowired
	public KeyServiceImpl keyService;
	@Autowired
	public PublishServiceImpl publishService;
	@Autowired
	public SummaryServiceImpl summaryService;
	@Autowired
	public FundServiceImpl fundService;
	
	@Override
	public void insertPublish(PublishPo publish) {
		publishService.insertPublish(publish);
	}

	@Override
	public void insertSummary(SummaryPo summary) {
		summaryService.insertSummary(summary);
	}

	@Override
	public void insertFile(FilePo docinfo) {
		fileService.insertFile(docinfo);
	}

	@Override
	public void insertAuthor(AuthorPo author) {
		authorService.insertAuthor(author);

	}

	@Override
	public void insertkeys(ArrayList<KeyPo> keys) {
		keyService.insertkeys(keys);

	}

	@Override
	public FilePo findIdByTitle(String title) {
		FilePo fp=fileService.findIdByTitle(title);
		return fp;
	}

	public void insertFund(FundPo fund) {
		fundService.insertFund(fund);
	}

}
